package com.business.user.entity;

import java.util.Date;

/**
 * 消息表 实体类
 * @author chenjiehong
 * @date 2019-11-29 14:28:27
 * @since 1.0
 */
public class MessageDto {


    // columns START

	private Integer id; 

	/**
	 * 
	 */
	private Integer userId; 

	/**
	 * 来源用户id
	 */
	private Integer fromUserId; 


	/**
	 * 内容
	 */
	private String content; 

	/**
	 * 图片地址
	 */
	private String imageUrl; 

	/**
	 * 详情链接
	 */
	private String detailsUrl; 

	/**
	 * 已读状态 1：已读 0：未读
	 */
	private Integer isRead; 

	/**
	 * 类型：0：系统信息，1：留言 2：评论  3：赞 4：新粉丝
	 */
	private Integer type; 

	/**
	 * 
	 */
	private Date createTime; 
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getUserId() {
		return userId;
	}

    public void setUserId(Integer userId) {
    	this.userId = userId;
    }
	public Integer getFromUserId() {
		return fromUserId;
	}

    public void setFromUserId(Integer fromUserId) {
    	this.fromUserId = fromUserId;
    }
	public String getContent() {
		return content;
	}

    public void setContent(String content) {
    	this.content = content;
    }
	public String getImageUrl() {
		return imageUrl;
	}

    public void setImageUrl(String imageUrl) {
    	this.imageUrl = imageUrl;
    }
	public String getDetailsUrl() {
		return detailsUrl;
	}

    public void setDetailsUrl(String detailsUrl) {
    	this.detailsUrl = detailsUrl;
    }
	public Integer getIsRead() {
		return isRead;
	}

    public void setIsRead(Integer isRead) {
    	this.isRead = isRead;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public Date getCreateTime() {
		return createTime;
	}

    public void setCreateTime(Date createTime) {
    	this.createTime = createTime;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[userId:" + getUserId() + "]";
		log += "[fromUserId:" + getFromUserId() + "]";
		log += "[content:" + getContent() + "]";
		log += "[imageUrl:" + getImageUrl() + "]";
		log += "[detailsUrl:" + getDetailsUrl() + "]";
		log += "[isRead:" + getIsRead() + "]";
		log += "[type:" + getType() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		return log;
	}
}